package com.zimmur.service.impl.account;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zimmur.dao.account.IDesignerTaglibDao;
import com.zimmur.model.account.DesignerTaglib;
import com.zimmur.service.account.IDesignerTaglibService;

@Service("designerTaglibService")
public class DesignerTaglibServiceImpl implements IDesignerTaglibService {
	@Resource
	private IDesignerTaglibDao designerTagLibDao;
	
	@Override
	public List<DesignerTaglib> selectList(Integer num) {
		List<DesignerTaglib> list;
		
		if(num != null && num>0){
			list = designerTagLibDao.selectTopNList(num);
		}else{
			list = designerTagLibDao.selectAllList();
		}
		return list;
	}

}
